package com.hxn.wxshake.utils;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * @ClassName UrlParamUtil
 * @Description TODO
 * @Author hxn
 * @Date 2019/8/6 14:48
 * @Version 1.0
 **/
public class UrlParamUtil {

    public static String getUrlParam(final String param,final String enc){
        try {
            return URLEncoder.encode(param, enc);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return param;
    }
}
